package com.jielihaofeng.cachekit;

/**
 * @author Johnnie Wind
 * @description 事件版Printer执行
 * @date 2021/10/25 12:13
 */
public class ClientEvent {

    public static void main(String[] args) {

        EventQueue eventQueue = new EventQueue();

        PrintEventHandler handler = new PrintEventHandler();
        Event<String> event = new Event<>("hello world", EventType.PRINT);
        EventRunner runner = new EventRunner(handler, event);

        eventQueue.addEventRunner(runner);
        eventQueue.dispose();
    }

}
